#-*- coding:utf-8 -*-
from selenium import webdriver
import time



driver =webdriver.Firefox()

driver.maximize_window()
driver.get("file:///C:/Users/liyan/Desktop/ni/nihao.html")
driver.implicitly_wait(5)

li =driver.find_element_by_id("li")
driver.implicitly_wait(5)
print li.size

print li.is_displayed()
driver.implicitly_wait(5)
print li.get_attribute("name"),li.get_attribute("id"),li.get_attribute("class")
print li.text
driver.implicitly_wait(5)
driver.quit()